package com.tecnalia.authz.common.response;

import org.jboss.security.xacml.interfaces.RequestContext;
import org.jboss.security.xacml.interfaces.ResponseContext;

import com.tecnalia.authz.common.response.contur.IResponseContur;
import com.tecnalia.authz.common.response.contur.ResponseConturImpl;
import com.tecnalia.authz.common.response.xacml.IResponseXACML;
import com.tecnalia.authz.common.response.xacml.ResponseXACMLImpl;

public class Response implements IResponseXACML,IResponseContur{

	private IResponseXACML responsexacml = null;
	private IResponseContur responsecontur = null;

	public Response(){
		responsexacml = new ResponseXACMLImpl();
		responsecontur = new ResponseConturImpl();
	}

	@Override
	public ResponseContext getResponse() {
		return this.responsecontur.getResponse();
	}


	@Override
	public void setResponse(ResponseContext response) {
		this.responsecontur.setResponse(response);
		
	}


	@Override
	public ResponseContext[] getListResponse() {
		return this.responsecontur.getListResponse();
	}


	@Override
	public void setListResponse(ResponseContext[] listResponse) {
		this.responsecontur.setListResponse(listResponse);
	}
	
	
	@Override
	public ResponseContext flexibleResponseContext(RequestContext[] reqList) {
		return this.responsecontur.flexibleResponseContext(reqList);
	}

	@Override
	public ResponseContext strictResponseContext() {
		return this.responsecontur.strictResponseContext();
	}
}


